package com.huli.feign;

import com.huli.param.OwnerIncomeParam;
import com.huli.param.PlatformIncomeParam;
import com.huli.param.PropertyCompanyParam;
import com.huli.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("server-income")
public interface IncomeClient {

    //通过位主id查询位主 日收入
    @GetMapping("/ownerIncome/selectOwnerDayIncomeById")
    Result selectOwnerDayIncomeById(@RequestParam int ownerId);


    //通过位主id查询位主 月收入
    @GetMapping("/ownerIncome/selectOwnerMonthIncomeById")
    Result selectOwnerMonthIncomeById(@SpringQueryMap OwnerIncomeParam ownerIncomeParam);


    //通过物业id 查询物业  日收入
    @GetMapping("/propertyCompany/selectPropertyDayIncomeById")
    Result selectPropertyDayIncomeById(@SpringQueryMap PropertyCompanyParam propertyCompanyParam);



    //通过物业id 查询车库  日收入
    @GetMapping("/propertyCompany/selectGarageDayIncomeById")
    Result selectGarageDayIncomeById(@SpringQueryMap PropertyCompanyParam propertyCompanyParam);



    //查询平台日收入
    @GetMapping("/platformIncome/selectPlatformIncome")
    Result selectPlatformIncome( @SpringQueryMap PlatformIncomeParam platformIncomeParam);
}
